package com.smartstate.ems.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 电表
 */
@Data
@TableName("e_dhu0005")
@ApiModel(description = "报表数据格式")
public class PowerEquipmentEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @ExcelProperty("id")
    @ColumnWidth(value = 15)
    @TableField(value = "id", fill = FieldFill.INSERT)
    private String id;

    @ExcelProperty("powerEquipmentId")
    @ColumnWidth(value = 25)
    @TableField(value = "id", fill = FieldFill.INSERT)
    private String powerEquipmentId;

    @ExcelProperty("powerEquipmentId")
    @ColumnWidth(value = 30)
    @ApiModelProperty(value = "时间戳")
    private String ts;

    @ExcelProperty("设备名称")
    @ColumnWidth(value = 30)
    @ApiModelProperty(value = "设备名称")
    private String name;

    @ExcelProperty("有电功能")
    @ColumnWidth(value = 30)
    @ApiModelProperty(value = "有电功能")
    private float active_energy;

    @ExcelProperty("有电功能前一段时间差值")
    @ColumnWidth(value = 30)
    @ApiModelProperty(value = "有电功能前一段时间差值")
    private float det_active_energy;

    @ExcelProperty("无功电能")
    @ColumnWidth(value = 30)
    @ApiModelProperty(value = "无功电能")
    private float reactive_energy;

    @ExcelProperty("无电功能前一段时间差值")
    @ColumnWidth(value = 30)
    @ApiModelProperty(value = "无电功能前一段时间差值")
    private float det_reactive_energy;

    @ExcelProperty("视在能量")
    @ColumnWidth(value = 30)
    @ApiModelProperty(value = "视在能量")
    private float apparent_energy;

    @ExcelProperty("视在能量前一段时间差值")
    @ColumnWidth(value = 30)
    @ApiModelProperty(value = "视在能量前一段时间差值")
    private float det_apparent_energy;


}
